var wineApp = wineApp || {};
wineApp.jzdetail = (function() {
    var resourceURL = wineApp.tool.getResourceURL();
    var params = $.url().param();
    var jzId = params["jzid"];
    var initPage = function() {
        loadJzInfo();
    }
    var loadJzInfo = function() {
        var ajaxUrl = wineApp.CONFIG.API.jzdetail
        wineApp.ajax.post(ajaxUrl, {
            id: jzId
        }).done(function(data) {
            $('#jzimg').attr("src", resourceURL + "/" + data.detail.titleimg);
            $('.wine_jzmore ul').html(data.detail.content);
        });
    }
    return {
        initPage: initPage
    }
})();


$(document).ready(function() {
    $('.wine_footer').remove();
    wineApp.common.initHeaderIcon(0, true);
    wineApp.jzdetail.initPage();
});